export const tableOption = {
    "border": true,
    "index": true,
    "indexLabel": "序号",
    "stripe": true,
    "menuAlign": "center",
    addBtnText: "添加模板",
    dialogClickModal: false,
    "align": "center",
    "menuWidth": 150,
    "column": [
        {
            "type": "input",
            "label": "模板名称",
            "prop": "moduleName",
            rules:[
                {
                    required: true,
                    message: '请输入模板名称',
                    trigger: 'blur'
                },
                {
                    min:0,
                    max:25,
                    message:'长度在 0 到 25 个字符',
                    trigger:['blur','change']
                }
            ]

        },
        {
            "type": "input",
            "label": "模板编码",
            "prop": "moduleCode",
            rules:[
                {
                    required: true,
                    message: '请输入模板编码',
                    trigger: 'blur'
                },
                {
                    min:0,
                    max:25,
                    message:'长度在 0 到 25 个字符',
                    trigger:['blur','change']
                }
            ]
        },
        {
            "type": "input",
            "label": "消息链接",
            "prop": "url",
            rules:[
                {
                    min:0,
                    max:25,
                    message:'长度在 0 到 25 个字符',
                    trigger:['blur','change']
                }
            ]
        },
        {
            "type": "select",
            "label": "打开方式",
            "prop": "openType",
            "dicData":utils.getDict('open_type'),
        },

        {
            "type": "textarea",
            "label": "消息模板",
            "prop": "template",
            span:24,
            rules:[
                {
                    min:0,
                    max:225,
                    message:'长度在 0 到 225 个字符',
                    trigger:['blur','change']
                }
            ]
        },
    ]
}
